package com.hp.springbootwebflux.exception;

import lombok.Data;

/**
 * @author dongxing
 **/
@Data
public class CheckException extends RuntimeException {


    private static final long serialVersionUID = -3886755390606975117L;

    /**
     *
     * 出错的字段名
     */
    private String fieldName;


    /**
     * 出错的值
     */
    private String fieldValue;


    public CheckException(String fieldName, String fieldValue) {
        super();
        this.fieldName = fieldName;
        this.fieldValue = fieldValue;
    }

    public CheckException() {
    }

    public CheckException(String message) {
        super(message);
    }

    public CheckException(String message, Throwable cause) {
        super(message, cause);
    }

    public CheckException(Throwable cause) {
        super(cause);
    }

    public CheckException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
